{% extends "base.html" %}
{% block title %}注册{% endblock %}

{% block content %}
    <h2 class="mb-4">用户注册</h2>
    <form method="post">
        <div class="mb-3">
            <label for="username" class="form-label">用户名</label>
            <input type="text" class="form-control" id="username" name="username" required>
        </div>
        <div class="mb-3">
            <label for="password" class="form-label">密码</label>
            <input type="password" class="form-control" id="password" name="password" required>
        </div>
        <button type="submit" class="btn btn-primary">注册</button>
        <a href="{{ url_for('login') }}" class="btn btn-secondary ms-2">已有账号？去登录</a>
    </form>
{% endblock %}